#ifndef __TASK_QUEUE__
#define __TASK_QUEUE__
#include "my_header.h"
typedef struct server_s{
    char cmd[100];
    char token[1024];
    char key[100];
    char userName[100];
}server_t;

typedef struct task_s{
    server_t *pserver;
    int netFd;
    struct task_s *pNext;
}task_t;

typedef struct taskQueue_s{
    int queueSize;
    task_t *pFront;
    task_t *pRear;
}taskQueue_t;

int enQueue(taskQueue_t *pQueue,server_t *pserver);
int deQueue(taskQueue_t *pQueue);
int visitQueue(taskQueue_t *pQueue);
#endif
